package com.itheima.TestAnimal;

public class Rabbit extends Herbivore {
    @Override
    void eat() {
        System.out.println("年龄为 "+getAge()+"岁的"+getNumOfLegs()+"条腿的兔子在吃狗尾草");
    }
}
